package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by ZhuChunXiao on 2017/6/2.
 */
@Entity
@Table(name="ec_ordertrack")
public class OrderTrack extends BaseFlowEntity {
    private static final long serialVersionUID = 1288431017154963439L;

    /**
     * 订单实施表
     */
    private OrderEntity orderEntity;
    /**
     * 订单跟踪时间
     */
    private Date trackDate;
    /**
     * 订单完成比率
     */
    private Integer rate;
    /**
     * 完成情况说明
     */
    private String completion;
    /**
     * 是否有障碍问题 1否 2是
     */
    private int difficulty;
    /**
     * 障碍情况描述
     */
    private String difficultyText;
    /**
     * 障碍克服情况 1未克服 2已克服
     */
    private int overcome;

    @ManyToOne(fetch = FetchType.LAZY)
    public OrderEntity getOrderEntity() {
        return orderEntity;
    }

    public void setOrderEntity(OrderEntity orderEntity) {
        this.orderEntity = orderEntity;
    }

    public Date getTrackDate() {
        return trackDate;
    }

    public void setTrackDate(Date trackDate) {
        this.trackDate = trackDate;
    }

    public Integer getRate() {
        return rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public String getCompletion() {
        return completion;
    }

    public void setCompletion(String completion) {
        this.completion = completion;
    }

    public int getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(int difficulty) {
        this.difficulty = difficulty;
    }

    public String getDifficultyText() {
        return difficultyText;
    }

    public void setDifficultyText(String difficultyText) {
        this.difficultyText = difficultyText;
    }

    public int getOvercome() {
        return overcome;
    }

    public void setOvercome(int overcome) {
        this.overcome = overcome;
    }

}
